import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

///toast工具类
class ToastUtil {
  static showShort(
    String msg,
  ) {
    Fluttertoast.showToast(
        msg: msg,
        toastLength: Toast.LENGTH_SHORT,
        gravity: ToastGravity.BOTTOM,
        timeInSecForIosWeb: 1,
        // backgroundColor: ,
        // textColor: ,
        fontSize: 16.0);
  }

  static showLong(
    String msg,
  ) {
    Fluttertoast.showToast(
        msg: msg,
        toastLength: Toast.LENGTH_LONG,
        gravity: ToastGravity.BOTTOM,
        timeInSecForIosWeb: 1,
        // backgroundColor:,
        // textColor: ,
        fontSize: 16.0);
  }

  // ///初始化进度弹窗
  // static showProgressDialog(BuildContext context) {
  //   showDialog(
  //       context: context,
  //       builder: (context) {
  //         return const MainProgressWidget();
  //       });
  // }
}
